package com.czl.elm.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.czl.elm.domain.Order;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zuoleiChen
 * @since 2021-06-18
 */
@Mapper
@Repository
public interface OrderMapper extends BaseMapper<Order> {

    Integer createOrder(Order order);

    Order getOrderById(String orderId);

    IPage<String> getOrderList(String phoneName, Page<String> page);

    Map<String,Object> getOrderByIdBasic(String orderId);
}
